package fr.umlv.m2.jee.pmlv.service.subject;

import java.util.List;

import fr.umlv.m2.jee.pmlv.persistence.subject.KeyWord;
import fr.umlv.m2.jee.pmlv.persistence.subject.Subject;

public class DisplayKeyWord {
	
	private KeyWord keyWord;
	
	public DisplayKeyWord(KeyWord keyWord) {
		this.keyWord = keyWord;
	}
	

	/**
	 * Sets the word which represented the keyword.
	 * @param word the keyword to set.
	 */
	public void setWord(String word) {
		keyWord.setWord(word);
	}
	
	/**
	 * Returns the word which represented the keyword.
	 * @return the word which represented the keyword.
	 */
	public String getWord() {
		return keyWord.getWord();
	}

	/**
	 * Sets the list of {@link Subject} where the keyword is.
	 * @param subjects the list of {@link Subject} ,where the 
	 *        Keyword is, to set.
	 */
	public void setSubjects(List<Subject> subjects) {
		keyWord.setSubjects(subjects);
	}

	/**
	 * Returns the list of {@link Subject} where the keyword is.
	 * @return the list of {@link Subject} where the keyword is.
	 */
	public List<Subject> getSubjects() {
		return keyWord.getSubjects();
	}

}
